package com.diaohw.module.log.obj.query;

import com.diaohw.platform.common.obj.page.PageDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@Schema(description = "日志查询")
@EqualsAndHashCode(callSuper = true)
public class LogQuery extends PageDto {

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "请求ID")
    private String requestId;

    @Schema(description = "请求耗时")
    private Integer elapsed;

    @Schema(description = "登录用户ID")
    private String loginId;

    @Schema(description = "服务名称")
    private String applicationNam;

    /**
     * 服务IP
     */
    @Schema(description = "服务IP")
    private String applicationIp;

    @Schema(description = "请求IP")
    private String requestIp;

    /**
     * 请求方法
     */
    @Schema(description = "请求方法")
    private String method;

    @Schema(description = "执行状态")
    private Integer status;

    @Schema(description = "SQL 类型")
    private String sqlType;

}
